package edu.sctu.practice.class02.Wangpeng.Assign03.A0302;

/**
 * Created by wp on 2015/11/4.
 */
public class Cricle {
    protected double radius;

    public Cricle(){
        radius=1.0;
    }
    public Cricle(double r){
        radius=r;
    }
    public double getRadius(){
        return radius;
    }
    public void setRadius(double radius){
        this.radius=radius;
    }
    public double findArea(){
        return radius*radius*Math.PI;
    }
    public boolean equals(Cricle cricle){
        return this.radius==cricle.getRadius();
    }
    public String toString(){
        return "圆的半径="+radius;
    }
}
